package com.hopu.haogoumall.db.service.imple;

import com.hopu.haogoumall.db.mapper.HaogoumallAddressMapper;
import com.hopu.haogoumall.db.module.HaogoumallAddress;
import com.hopu.haogoumall.db.service.VxAddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Package: com.hopu.haogoumall.db.service.imple
 * @ClassName: VxAddressServiceImple
 * @Author: xiaoBao
 * @CreateTime: 2020-12-08 11:16
 * @Description: 用户收获地址管理业务层接口实现类
 */
@Service
public class VxAddressServiceImple implements VxAddressService {
    /** 引入GoodsMapper持久层*/
    @Resource
    HaogoumallAddressMapper addressMapper;

    /**
     * 【findAll】 根据用户ID查询登录用户的所有收获地址
     * @param userId 用户ID；
     * @return 将当前操作持久层得到的List集合返回给前端JS
     */
    @Override
    public List<HaogoumallAddress> findAll(String userId) {
        return addressMapper.findAll(userId);
    }

}
